import request from '@/utils/request'

// 查询医疗保险列表
export function listMedicalInsurance(query) {
  return request({
    url: '/project/medicalInsurance/list',
    method: 'get',
    params: query
  })
}

// 查询医疗保险详细
export function getMedicalInsurance(id) {
  return request({
    url: '/project/medicalInsurance/' + id,
    method: 'get'
  })
}

// 新增医疗保险
export function addMedicalInsurance(data) {
  return request({
    url: '/project/medicalInsurance',
    method: 'post',
    data: data
  })
}

// 修改医疗保险
export function updateMedicalInsurance(data) {
  return request({
    url: '/project/medicalInsurance',
    method: 'put',
    data: data
  })
}

// 删除医疗保险
export function delMedicalInsurance(id) {
  return request({
    url: '/project/medicalInsurance/' + id,
    method: 'delete'
  })
}
// 导入医疗保险数据
export function importData(data) {
  return request({
    url: '/project/medicalInsurance/importData',
    method: 'post',
    data: data
  })
}
